package com.spr.controller;

import com.spr.service.SprDeviceImportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/sprDeviceImport")
@Slf4j
@Api(tags = "设备初始数据导入")
public class SprDeviceImportController {
    @Autowired
    private SprDeviceImportService sprDeviceImportService;
    @PostMapping("/excelImportPreviousPerformance")
    @ApiOperation(value = "导入(站点，设备，摄像头信息)")
    public ResponseEntity excelImportPreviousPerformance(@RequestParam("file") MultipartFile file){
        return sprDeviceImportService.excelImportPreviousPerformance(file);

    }

}
